package com.example.com.filelist;

import android.os.FileObserver;
import android.util.Log;

/**
 * Created by zhaobo on 2016/12/14.
 */

public class FO extends FileObserver {
    public FO(String path) {
        super(path);
    }

    @Override
    public void onEvent(int event, String path) {
        switch (event) {
            case FileObserver.ALL_EVENTS:
                Log.d("all", "path:" + path);
                break;
            case FileObserver.CREATE:
                Log.d("Create", "path:" + path);
                break;
        }
    }
}
